import type { routerItem } from '@/common/interface';
const defaultRoutes: routerItem[] = [
  {
    path: '/',
    name: "Layout",
    component: () => import('@/layout/index.vue'),
    children: [
      {
        path: "/",
        name: "首页",
        component: () => import('@/views/index/index.vue')
      },
      {
        path: "/details",
        name: "详情",
        component: () => import('@/views/details/index.vue')
      },
      {
        path: "/my",
        name: "修改名片",
        meta: {
          isLogin: true
        },
        component: () => import('@/views/my/index.vue')
      },
      {
        path: "/release",
        name: "我的发布",
        meta: {
          isLogin: true
        },
        component: () => import('@/views/release/index.vue')
      },
      {
        path: "/publish",
        name: "发布",
        meta: {
          isLogin: true
        },
        component: () => import('@/views/publish/index.vue')
      },
      {
        path: "/collaborationHistory",
        name: "合作历史",
        meta: {
          isLogin: true
        },
        component: () => import('@/views/collaborationHistory/index.vue')
      },
      {
        path: "/updatePwd",
        name: "修改密码",
        meta: {
          isLogin: true
        },
        component: () => import('@/views/updatePwd/index.vue')
      },
      {
        path: "/article",
        name: "隐私协议",
        component: () => import('@/views/article/index.vue')
      },
      {
        path: "/articleDetail",
        name: "文章",
        component: () => import('@/views/articleDetail/index.vue')
      }
    ]
  }
];
export default defaultRoutes;
